Attributes of an HTML Tag
Attributes provide additional information about an HTML element. They are always included in the opening tag and usually come in name/value pairs, such as name="value". Attributes help modify the behavior, appearance, or meaning of an element.
Common HTML Attributes
- id – uniquely identifies an element
 - class – assigns a class for styling or scripting
 - src – specifies the source file (e.g., images, scripts)
 - href – specifies the link URL
 - alt – provides alternative text for images
 - title – gives additional information shown as a tooltip
 - style – allows inline CSS styling
 - width/height – defines element dimensions
 - disabled – makes form elements uneditable or unclickable